home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / ichar.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  3.1 KB  |  78 lines

  1. /* Copyright (C) 1994, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: ichar.h,v 1.3 2000/09/19 19:00:41 lpd Exp $ */
  20. /* Character rendering operator definitions and support procedures */
  21. /* Requires gstext.h */
  22.  
  23. #ifndef ichar_INCLUDED
  24. #  define ichar_INCLUDED
  25.  
  26. /*
  27.  * All the character rendering operators use the execution stack
  28.  * for loop control -- see estack.h for details.
  29.  * The information pushed by these operators is as follows:
  30.  *      the enumerator (t_struct, a gs_text_enum_t);
  31.  *      a slot for the procedure for kshow or cshow (probably t_array);
  32.  *      a slot for the saved o-stack depth for cshow or stringwidth,
  33.  *              and for error recovery (t_integer);
  34.  *      a slot for the saved d-stack depth ditto (t_integer);
  35.  *      a slot for the saved gstate level ditto (t_integer);
  36.  *    a slot for saving the font during the cshow proc (t_struct);
  37.  *    a slot for saving the root font during the cshow proc (t_struct);
  38.  *      the procedure to be called at the end of the enumeration
  39.  *              (t_operator, but called directly, not by the interpreter);
  40.  *      the usual e-stack mark (t_null).
  41.  */
  42. #define snumpush 9
  43. #define esenum(ep) r_ptr(ep, gs_text_enum_t)
  44. #define senum esenum(esp)
  45. #define esslot(ep) ((ep)[-1])
  46. #define sslot esslot(esp)
  47. #define esodepth(ep) ((ep)[-2])
  48. #define sodepth esodepth(esp)
  49. #define esddepth(ep) ((ep)[-3])
  50. #define sddepth esddepth(esp)
  51. #define esgslevel(ep) ((ep)[-4])
  52. #define sgslevel esgslevel(esp)
  53. #define essfont(ep) ((ep)[-5])
  54. #define ssfont essfont(esp)
  55. #define esrfont(ep) ((ep)[-6])
  56. #define srfont esrfont(esp)
  57. #define eseproc(ep) ((ep)[-7])
  58. #define seproc eseproc(esp)
  59.  
  60. /* Procedures exported by zchar.c for zchar*.c. */
  61. gs_text_enum_t *op_show_find(P1(i_ctx_t *));
  62. int op_show_setup(P2(i_ctx_t *, os_ptr));
  63. int op_show_enum_setup(P1(i_ctx_t *));
  64. int op_show_finish_setup(P4(i_ctx_t *, gs_text_enum_t *, int, op_proc_t));
  65. int op_show_continue(P1(i_ctx_t *));
  66. int op_show_continue_pop(P2(i_ctx_t *, int));
  67. int op_show_continue_dispatch(P3(i_ctx_t *, int, int));
  68. int op_show_free(P2(i_ctx_t *, int));
  69. void glyph_ref(P2(gs_glyph, ref *));
  70. int finish_stringwidth(P1(i_ctx_t *));
  71.  
  72. /* Exported by zchar.c for zcharout.c */
  73. bool zchar_show_width_only(P1(const gs_text_enum_t *));
  74. int zsetcachedevice(P1(i_ctx_t *));
  75. int zsetcachedevice2(P1(i_ctx_t *));
  76.  
  77. #endif /* ichar_INCLUDED */
  78.